#include <iostream>

using namespace std;

struct student
{
    char a[10];
    int age, score;
};

void improve(student *a)
{
    a->age += 1;
    a->score *= 1.2;
    if (a->score > 600)
    {
        a->score = 600;
    }
}

int main()
{
    int n;
    cin >> n;
    student *stu = new student[n];
    for (int i = 0; i < n; i++)
    {
        cin >> stu[i].a >> stu[i].age >> stu[i].score;
        improve(stu + i);
        cout << stu[i].a << " " << stu[i].age << " " << stu[i].score << endl;
    }

    return 0;
}